﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace ComeSeeThis_MVC2.Models
{
    // ReSharper disable InconsistentNaming
    public class aspnet_RoleOperationForm
    // ReSharper restore InconsistentNaming
    {
        public IQueryable<aspnet_Operation> AllOperations { get; private set; }
        public IQueryable<aspnet_Operation> RoleOperations { get; private set; }
        public aspnet_Roles Role { get; private set; }

        public aspnet_RoleOperationForm(Guid roleId, IQueryable<aspnet_Operation> allOperations, IQueryable<aspnet_Operation> roleOperations)
        {
            Role = new AspNetStuffEntities().aspnet_Roles.FirstOrDefault(x => x.RoleId == roleId);

            AllOperations = allOperations;
            RoleOperations = roleOperations;

        }
    }
}